package com.lintf.devdemo.entity.dto;

import com.lintf.devdemo.utils.excelUtil.ExcelImport;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ system:Window
 * @ author:lin tingfeng
 * @ data:2022/11/04-10:31
 * @ package_name:com.lintf.devdemo.entity.dto
 * @ project_name:DevDemo
 * @ desc:导入用户信息Excel参数类
 */
@ApiModel(value = "ImportUserInfoExcelDto", description = "导入用户信息Excel参数类")
@Data
public class ImportUserInfoExcelDto {

    private int rowNum;

    @ApiModelProperty(value = "用户昵称", required = true)
    @ExcelImport(value = "用户昵称", required = true, unique = true)
    private String name;

    @ApiModelProperty(value = "用户年龄", required = true)
    @ExcelImport(value = "用户年龄", required = true)
    private Integer age;

//    @ExcelImport(value = "用户性别",required = true,kv = "1-男;2-女")

    @ApiModelProperty(value = "用户邮箱", required = true)
    @ExcelImport(value = "用户邮箱", required = true)
    private String email;

    /**
     * 错误提示
     */
    private String rowTips;

    /**
     * 原始数据
     */
    private String rowData;

}
